package org.echo.storage;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "org.echo.storage")
public class StorageConfig {

    /**
     * 是否显示下载字节数
     */
    private Boolean showProcess;

    /**
     * 是否显示下载进度百分比
     */
    private Boolean showPercent;

    /**
     * 保存路径
     */
    private String targetPath;

    public String getTargetPath() {
        return targetPath;
    }

    public void setTargetPath(String targetPath) {
        this.targetPath = targetPath;
    }

    public Boolean getShowProcess() {
        return showProcess;
    }

    public void setShowProcess(Boolean showProcess) {
        this.showProcess = showProcess;
    }

    public Boolean getShowPercent() {
        return showPercent;
    }

    public void setShowPercent(Boolean showPercent) {
        this.showPercent = showPercent;
    }
}
